/**
 * @filename:CategoryDao Category
 * @project constract  V1.0
 * Copyright(c) 2018 lin keqing Co. Ltd. 
 * All right reserved. 
 */
package com.znufe.exam.repository;

import java.util.List;

import com.znufe.exam.viewmodel.admin.category.AllCategoryInfoResponseVM;
import com.znufe.exam.viewmodel.admin.category.CategoryPageRequestVM;
import org.apache.ibatis.annotations.Mapper;
import com.znufe.exam.domain.Category;

/**   
 *  
 * @Description:  类别信息表——MAPPER
 * @Author:       lin keqing   
 * @CreateDate:   Category
 * @Version:      V1.0
 *    
 */
@Mapper
public interface CategoryMapper extends BaseMapper<Category> {
	
	Category selectByPrimaryKey(Integer id);

	Category selectByConcreteName(String concreteName);
	
	int deleteByPrimaryKey(Integer id);
	
	int insertSelective(Category category);
	
	int updateByPrimaryKeySelective(Category category);
	
	List<Category> queryCategoryList(Category category);

	List<AllCategoryInfoResponseVM> queryAllCategoryInfoList(Integer categoryId);

	List<Category> categoryPage(CategoryPageRequestVM requestVM);

	List<Category> getAllType();
}
